c# remove invalid directory characters

64

c# remove invalid directory characters -

public string ReplaceInvalidChars(string filename)
{
    return string.Join("_", filename.Split(Path.GetInvalidFileNameChars()));    
}

Comments

Submit
0 Comments